package com.zmn.mcc.common.dto.exception;

/**
 * @author tanghongjun
 * @version v1.0 @类说明： mcc异常类
 * @since 2020年10月21日10:18:57
 */
public class MccException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 错误码
     */
    private Integer errorCode;

    public MccException() {
    }

    public MccException(String message) {
        super(message);
    }

    public MccException(String message, Throwable cause) {
        super(message, cause);
    }

    public MccException(Throwable cause) {
        super(cause);
    }

    public MccException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public MccException(Integer errorCode) {
        super(errorCode + "");
        this.errorCode = errorCode;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }
}
